home *** CD-ROM | disk | FTP | other *** search
- function StartTracking()
- {
- Tracking = true;
- UpdateProgress();
- Progress = 0;
- KBS = "12.5 KBS";
- ETA = "5 minutes";
- Component = "Casino Core";
- }
- function StopTracking()
- {
- Tracking = false;
- stop();
- }
- function UpdateProgress()
- {
- Progress++;
- trace("Updating:" + Progress);
- if(100 < Progress)
- {
- Tracking = false;
- call("_root.FINISH");
- stop();
- }
- else
- {
- KBS = random(100) + 10 + " KBS";
- ETA = 100 - Progress + " seconds";
- _root.ProgressBar.Status = "Downloading...";
- _root.ProgressBar.Progress = Progress;
- _root.ProgressBar.KBS = KBS;
- _root.ProgressBar.ETA = ETA;
- _root.ProgressBar.Component = Component;
- play();
- }
- }
- if(Tracking)
- {
- UpdateProgress();
- }
- else
- {
- stop();
- }
-